<!DOCTYPE html>
<html>
  <head>
    {config_load file="/languages/lang_".$pligg_language.".conf"}
    {include file="meta.tpl"}

    <link rel="stylesheet" type="text/css" media="screen"
          href="{$tpl_dir}/css/main.css" />
    {if $Voting_Method eq 2}
    <link rel="stylesheet" type="text/css" media="screen"
          href="{$tpl_dir}/css/star_rating/star.css" />
    {/if}
    <link rel="alternate" type="application/rss+xml" title="RSS 2.0"
          href="{$my_pligg_base}/rss.php" />
    <link rel="icon" href="{$my_pligg_base}/favicon.ico" type="image/x-icon" />

    <!--[if lte IE 6]>
        <link rel="stylesheet" type="text/css" media="screen"
              href="{$tpl_dir}/css/ie6.css" />
        <script>
          blankImg = '{$tpl_dir}/images/blank.gif';
        </script>
        <style media="screen">{literal}
          body { behavior:url({$tpl_dir}/css/iehfix.htc); }
          img { behavior:url({$tpl_dir}/css/iepngfix.htc); }
        {/literal}</style>
    <![endif]-->

    {checkActionsTpl location="tpl_pligg_pre_title_thickbox"}
    {checkForCss}
    {checkForJs}
    {checkActionsTpl location="tpl_pligg_pre_title_lightbox"}
    <title>
      {if isset($pretitle)}{$pretitle}{/if}
      {#PLIGG_Visual_Name#}
      {if isset($posttitle)}{$posttitle}{/if}
    </title>
  </head>
  <body {$body_onload} class="{$body_classes}">
    <div id="page">
      <div id="header">
        {include file=$tpl_header.".tpl"}
      </div>
      <div id="content-parent">
        <div id="content">
          {if !empty($alert)}
            <div class="alert">{$alert}</div>
          {/if}
          {checkActionsTpl location="tpl_pligg_above_center"}
          {include file=$tpl_center.".tpl"}
          {checkActionsTpl location="tpl_pligg_below_center"}
        </div>
      </div>
      <div id="sidebar">
        {include file=$tpl_sidebar.".tpl"}
      </div>
      {include file=$tpl_footer.".tpl"}
    </div>
    <script src="{$my_pligg_base}/js/xmlhttp.php"></script>
    {* urchin causes a js error in test environment; disable it *}
    {if !constant('DB_IS_TEST')}
      <script src="http://www.google-analytics.com/urchin.js"></script>
      <script>
        _uacct = "UA-1979421-1";
        urchinTracker();
      </script>
    {/if}
  </body>
</html>
